/*
 * $Id: EngineObject.java 113 2009-07-01 16:19:14Z donbeave $
 */

package labour.concept.engine.client.data;

import labour.concept.client.data.BaseObject;
import labour.concept.client.data.Locale;
import labour.concept.client.data.ObjectType;

public class EngineObject extends BaseObject {

  public EngineObject(EngineObjectModel model, EngineManager manager) {
    super(model, manager);
  }

  public Site getSite() {
    return getManager().getSiteById(getModel().getSiteId());
  }

  @Override
  public EngineObjectModel getModel() {
    return (EngineObjectModel) super.getModel();
  }

  @Override
  public EngineObject createChild(ObjectType type, String name, Locale locale) {
    return (EngineObject) super.createChild(type, name, locale);
  }

  @Override
  public EngineManager getManager() {
    return (EngineManager) super.getManager();
  }

}
